<?php
require_once(dirname(__FILE__).'/../../emoji/Emoji.php');
function smarty_modifier_decode_emoji($string)
{
    $emoji = HTML_Emoji::getInstance();
    $emoji->setImageUrl('images/');
    $decoded = $emoji->filter($string, 'output');
    if ($emoji->getCarrier() == 'docomo') {
        $decoded = $emoji->filter($decoded, 'DocomoDefaultColor');
    }
    return $decoded;
}
